import request from '@/utils/request'

// 查询企务公开列表
export function listBusiness(data) {
  return request({
    url: '/coordination/business/list',
    method: 'post',
    data: data
  })
}

// 查询企务公开详细
export function getBusiness(id) {
  return request({
    url: '/coordination/business/' + id,
    method: 'get'
  })
}

// 新增企务公开
export function addBusiness(data) {
  return request({
    url: '/coordination/business',
    method: 'post',
    data: data
  })
}

// 修改企务公开
export function updateBusiness(data) {
  return request({
    url: '/coordination/business',
    method: 'put',
    data: data
  })
}

// 删除企务公开
export function delBusiness(id) {
  return request({
    url: '/coordination/business/' + id,
    method: 'delete'
  })
}



export function getStatistics(data) {
  return request({
    url: '/coordination/business/count',
    method: 'post',
    data: data
  })
}
